package com.sora.eduorder.client;

import com.sora.commonutils.vo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Classname: EduServiceClient
 * @Description:
 * @Author: Stonffe
 * @Date: 2023/1/14 17:06
 */
@Component
@FeignClient(name = "service-edu")
public interface EduServiceClient {
    /**
     * 根据课程id，获取课程信息
     * @param courseId
     * @return
     */
    @PostMapping("/eduservice/course/getCourseInfoByIdOrder/{courseId}")
    CourseWebVoOrder getCourseInfoByIdOrder(@PathVariable String courseId);

}
